package com.example.facecompare.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.view.RedirectView;

@Controller
public class SecurityController {

    @RequestMapping("/web")
    public String website() {
        return "/index";
    }

    @RequestMapping("/face")
    public String face() {
        return "/face";
    }

    @RequestMapping("/admin")
    public String admin() {
        return "/admin";
    }

    @GetMapping("/redirect")
    public RedirectView redirect() {
        String baiduUrl = "http://www.gzmcy.com.cn:8088/";  // 百度网址
        return new RedirectView(baiduUrl);
    }
}
